package com.zjzywl.smoke.repository;

import com.zjzywl.smoke.entity.Authority;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface AuthorityRepository extends JpaRepository<Authority,Integer> {
	@Query("select u from Authority u where u.role.roleId=:roleId")
	Authority findRoleById(@Param("roleId")int roleId);

	


	
}
 